/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package poli.reserva.base;

import java.util.Date;

/**
 *
 * @author Pc
 */
public class reservaSilla {
    
    private String id_reserva;
    private String id_vuelo;
    private String num_silla;
    private String letra_silla;
    private String idusuario;
    private Date fec_reserva;
    
    public reservaSilla(){
        
    }

    public reservaSilla(String id_reserva, String id_vuelo, String num_silla, String letra_silla, String idusuario, Date fec_reserva) {
        this.id_reserva = id_reserva;
        this.id_vuelo = id_vuelo;
        this.num_silla = num_silla;
        this.letra_silla = letra_silla;
        this.idusuario = idusuario;
        this.fec_reserva = fec_reserva;
    }

    public String getId_reserva() {
        return id_reserva;
    }

    public String getId_vuelo() {
        return id_vuelo;
    }

    public String getNum_silla() {
        return num_silla;
    }

    public String getLetra_silla() {
        return letra_silla;
    }

    public String getIdusuario() {
        return idusuario;
    }

    public Date getFec_reserva() {
        return fec_reserva;
    }

    public void setId_reserva(String id_reserva) {
        this.id_reserva = id_reserva;
    }

    public void setId_vuelo(String id_vuelo) {
        this.id_vuelo = id_vuelo;
    }

    public void setNum_silla(String num_silla) {
        this.num_silla = num_silla;
    }

    public void setLetra_silla(String letra_silla) {
        this.letra_silla = letra_silla;
    }

    public void setIdusuario(String idusuario) {
        this.idusuario = idusuario;
    }

    public void setFec_reserva(Date fec_reserva) {
        this.fec_reserva = fec_reserva;
    }

    @Override
    public int hashCode() {
        int hash = 3;
        hash = 47 * hash + (this.id_reserva != null ? this.id_reserva.hashCode() : 0);
        hash = 47 * hash + (this.id_vuelo != null ? this.id_vuelo.hashCode() : 0);
        hash = 47 * hash + (this.num_silla != null ? this.num_silla.hashCode() : 0);
        hash = 47 * hash + (this.letra_silla != null ? this.letra_silla.hashCode() : 0);
        hash = 47 * hash + (this.idusuario != null ? this.idusuario.hashCode() : 0);
        hash = 47 * hash + (this.fec_reserva != null ? this.fec_reserva.hashCode() : 0);
        return hash;
    }

    @Override
    public boolean equals(Object obj) {
        if (obj == null) {
            return false;
        }
        if (getClass() != obj.getClass()) {
            return false;
        }
        final reservaSilla other = (reservaSilla) obj;
        if ((this.id_reserva == null) ? (other.id_reserva != null) : !this.id_reserva.equals(other.id_reserva)) {
            return false;
        }
        if ((this.id_vuelo == null) ? (other.id_vuelo != null) : !this.id_vuelo.equals(other.id_vuelo)) {
            return false;
        }
        if ((this.num_silla == null) ? (other.num_silla != null) : !this.num_silla.equals(other.num_silla)) {
            return false;
        }
        if ((this.letra_silla == null) ? (other.letra_silla != null) : !this.letra_silla.equals(other.letra_silla)) {
            return false;
        }
        if ((this.idusuario == null) ? (other.idusuario != null) : !this.idusuario.equals(other.idusuario)) {
            return false;
        }
        if (this.fec_reserva != other.fec_reserva && (this.fec_reserva == null || !this.fec_reserva.equals(other.fec_reserva))) {
            return false;
        }
        return true;
    }

    @Override
    public String toString() {
        return "reservaSilla{" + "id_reserva=" + id_reserva + ", id_vuelo=" + id_vuelo + ", num_silla=" + num_silla + ", letra_silla=" + letra_silla + ", idusuario=" + idusuario + ", fec_reserva=" + fec_reserva + '}';
    }
    
    
    
}
